package com.example.demo.DAO.myBatisDao;

import org.springframework.data.redis.connection.RedisClusterNode;
import org.springframework.stereotype.Component;

import java.util.Collection;

/**
 * @author:TobbyQuinn
 * @date:2018/3/1
 * @project:studyboot
 **/

public interface ICacheDao {

    boolean setString(String key, String value, int expireTime);

    String getString(String key);

    boolean setObject(String key, Object value);

    Object getObject(String key);

    boolean delete(String key);

    boolean delete(Collection<Object> keys);

    boolean flushDB(RedisClusterNode redisClusterNode);

    boolean flushAll();
}
